package com.xxxy.hyc.xyxmp.bean;

public class Goods {
    private int id;             // 商品ID
    private String name;        // 商品名称
    private double price;       // 价格
    private int stock;          // 库存
    private String imageUrl;    // 图片路径（本地drawable名称）
    private String description; // 描述

    // 构造方法
    public Goods(int id, String name, double price, int stock, String imageUrl, String description) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.stock = stock;
        this.imageUrl = imageUrl;
        this.description = description;
    }

    // getter和setter
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }

    public String getName() { return name; }
    public void setName(String name) { this.name = name; }

    public double getPrice() { return price; }
    public void setPrice(double price) { this.price = price; }

    public int getStock() { return stock; }
    public void setStock(int stock) { this.stock = stock; }

    public String getImageUrl() { return imageUrl; }
    public void setImageUrl(String imageUrl) { this.imageUrl = imageUrl; }

    public String getDescription() { return description; }
    public void setDescription(String description) { this.description = description; }
}